package xkp.lesson;

import java.util.Date;

/**
 * 该类与数据库中的表完全对应
 */
public class UserInfoEntity {
    private Integer userId;
    private String userName;
    private String userPwd;
    private String nickName;
    private String userSex;
    private Integer userAge;
    private String phoneNumber;
    private String email;
    private Date createTime;
    private Date updateTime;

    public UserInfoEntity() {
    }

    public UserInfoEntity(String userName, String userPwd, String nickName, String userSex, Integer userAge, String phoneNumber, String email) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.nickName = nickName;
        this.userSex = userSex;
        this.userAge = userAge;
        this.phoneNumber = phoneNumber;
        this.email = email;
    }

    public UserInfoEntity(Integer userId, String userName, String userPwd, String nickName, String userSex, Integer userAge, String phoneNumber, String email) {
        this.userId = userId;
        this.userName = userName;
        this.userPwd = userPwd;
        this.nickName = nickName;
        this.userSex = userSex;
        this.userAge = userAge;
        this.phoneNumber = phoneNumber;
        this.email = email;
    }

    public UserInfoEntity(Integer userId, String userName, String userPwd, String nickName, String userSex, Integer userAge, String phoneNumber, String email, Date createTime, Date updateTime) {
        this.userId = userId;
        this.userName = userName;
        this.userPwd = userPwd;
        this.nickName = nickName;
        this.userSex = userSex;
        this.userAge = userAge;
        this.phoneNumber = phoneNumber;
        this.email = email;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public Integer getUserAge() {
        return userAge;
    }

    public void setUserAge(Integer userAge) {
        this.userAge = userAge;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "UserInfoEntity{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", nickName='" + nickName + '\'' +
                ", userSex='" + userSex + '\'' +
                ", userAge=" + userAge +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", email='" + email + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
